Optimal. Leaf size=56 \[ \frac {2 a \sin (c+d x)}{3 d \sqrt {a+a \cos (c+d x)}}+\frac {2 \sqrt {a+a \cos (c+d x)} \sin (c+d x)}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 56, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {2830, 2725}
\begin {gather*} \frac {2 \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{3 d}+\frac {2 a \sin (c+d x)}{3 d \sqrt {a \cos (c+d x)+a}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2725
Rule 2830
Rubi steps
\begin {align*} \int \cos (c+d x) \sqrt {a+a \cos (c+d x)} \, dx &=\frac {2 \sqrt {a+a \cos (c+d x)} \sin (c+d x)}{3 d}+\frac {1}{3} \int \sqrt {a+a \cos (c+d x)} \, dx\\ &=\frac {2 a \sin (c+d x)}{3 d \sqrt {a+a \cos (c+d x)}}+\frac {2 \sqrt {a+a \cos (c+d x)} \sin (c+d x)}{3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.08, size = 54, normalized size = 0.96 \begin {gather*} \frac {\sqrt {a (1+\cos (c+d x))} \sec \left (\frac {1}{2} (c+d x)\right ) \left (3 \sin \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {3}{2} (c+d x)\right )\right )}{3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 58, normalized size = 1.04
method | result | size |
default | \(\frac {2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) a \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1\right ) \sqrt {2}}{3 \sqrt {a \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, d}\) | \(58\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.55, size = 36, normalized size = 0.64 \begin {gather*} \frac {{\left (\sqrt {2} \sin \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right ) + 3 \, \sqrt {2} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} \sqrt {a}}{3 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 40, normalized size = 0.71 \begin {gather*} \frac {2 \, \sqrt {a \cos \left (d x + c\right ) + a} {\left (\cos \left (d x + c\right ) + 2\right )} \sin \left (d x + c\right )}{3 \, {\left (d \cos \left (d x + c\right ) + d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {a \left (\cos {\left (c + d x \right )} + 1\right )} \cos {\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.47, size = 53, normalized size = 0.95 \begin {gather*} \frac {\sqrt {2} {\left (\mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right ) + 3 \, \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} \sqrt {a}}{3 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \cos \left (c+d\,x\right )\,\sqrt {a+a\,\cos \left (c+d\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________